package easyexcel.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@ApiModel(value="用户")
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {
    private String id;

    @ApiModelProperty(value = "用户姓名")
    @ExcelProperty(value = "姓名", index = 0)
    private String name;

    @ApiModelProperty("年龄")
    @ExcelProperty(value = "年龄", index = 1)
    private Integer age;

    @ApiModelProperty("邮箱")
    @ExcelProperty(value = "邮箱", index = 2)
    private String email;
}